/**
 * author:Administrator
 * date:2016/3/29
 * desc:TODO
 */
'use strict';

class FormatError {
  constructor(code, msg) {
    this.code = code;
    this.msg = msg;
  }
}

let errors = {
  E_server_fail:        new FormatError(2009, 'E_server_fail'),
  E_permission_deny:    new FormatError(1008, 'E_permission_deny'),
  E_no_bound_role:      new FormatError(1006, 'E_no_bound_role'),
  E_need_login:         new FormatError(1006, 'E_need_login'),
};


module.exports = errors;